package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 支付信息对象 payments
 * 
 * @author codernight
 * @date 2025-03-17
 */
public class Payments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 支付ID */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 使用的积分数量 */
    @Excel(name = "使用的积分数量")
    private Long pointsUsed;

    /** 支付后的剩余积分余额 */
    @Excel(name = "支付后的剩余积分余额")
    private Long pointsBalance;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String status;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setPointsUsed(Long pointsUsed) 
    {
        this.pointsUsed = pointsUsed;
    }

    public Long getPointsUsed() 
    {
        return pointsUsed;
    }

    public void setPointsBalance(Long pointsBalance) 
    {
        this.pointsBalance = pointsBalance;
    }

    public Long getPointsBalance() 
    {
        return pointsBalance;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("pointsUsed", getPointsUsed())
            .append("pointsBalance", getPointsBalance())
            .append("status", getStatus())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
